package com.bawei.module_mine.api


import com.bawei.lib_net.BaseResponse
import com.bawei.module_mine.model.LoginData
import com.bawei.module_mine.model.RegisterData
import retrofit2.http.POST
import retrofit2.http.Query

interface Api {
    @POST("api/user/login")
    suspend fun login(@Query("username")username:String,@Query("password")password:String):BaseResponse<LoginData>
    @POST("/api/user/register")
    suspend fun register(@Query("username")username:String,@Query("password")password:String):BaseResponse<RegisterData>
}
